<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <h3>当前权限</h3>
    <div><label></label>{$priv_str}</div>
    <pre>{:print_r($priv_list, true)}</pre>

    <h3>授权</h3>
    <pre>可以使用通配符`*`表示当前类型下，当前级别所有权限
可以用`,`分隔多条权限
比如`test.*,demo.main`</pre>
    <form action="{:url('accredit')}" method="post">
        <div>
            <label for="privilege">权限</label>
            <input type="text" name="privilege" id="privilege">
        </div>
        <button type="submit">提交</button>
    </form>

    <h3>检查</h3>
    <pre>检查有无访问各模块的权限</pre>
    <a href="{:url('check')}">检查</a>

    <h3>清除</h3>
    <a href="{:url('clear')}">清除</a>
</body>
</html>
